const mongoose = require('mongoose');
const Schema = mongoose.Schema;

const AddressSchema = new Schema({
  name: String,
  telephone: String,
  province: String,
  city: String,
  county: String,
  addressDetail: String,
  areaCode: String,
  postalCode: String,
  isDefault: {
    type: Boolean,
    default: false,
  },
})

// 发布模型
mongoose.model('Address', AddressSchema);